package com.uinnova.product.eam.vo;

import com.binary.framework.bean.annotation.Comment;
import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.Data;

import java.util.Date;
import java.util.List;
import java.util.Map;

@Data
public class GTApproveRecordTask {

    @Comment("任务ids")
    private List<String> taskIds;
    @Comment("任务名称")
    private String taskName;
    @Comment("任务提交时间")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
    private Date commitTime;
    @Comment("操作人")
    private List<String> userIds;
    @Comment("流程实例名称")
    private String processInstanceName;
    @Comment("任务变量")
    private Map<String, Object> variables;
    @Comment("任务描述")
    private String description;
    @Comment("当前处理人及节点")
    private List<Assignee> assignees;

    @Data
    public static class Assignee {

        public Assignee(String name, String taskId) {
            this.name = name;
            this.taskId = taskId;
        }

        @Comment("当前处理人及节点")
        private String name;
        @Comment("任务id")
        private String taskId;
    }
}
